<?php
/**
 * Created by PhpStorm.
 * User: zsm
 * Date: 2018/5/10
 * Time: 17:33
 */
namespace Library;

define('COMMON_PATH',SYS_PATH.'Common/');

require_once COMMON_PATH.'common.php';

if (file_exists(APP_PATH.'common.php')){
    require_once APP_PATH.'common.php';
}

Config(include APP_PATH.'config.php');//写入配置信息

//定义URL类型
define('URL_MODE',Config('URL_COMMON'));

//引入自动加载类,并注册自动加载函数
require_once YIN_PATH.'Loader.php';
spl_autoload_register('Library\Loader::autoload',true,true);

require_once YIN_PATH.'Route.php';

(new Route())->bootstrap();